#include "StdAfx.h"

StrategyAbstract::StrategyAbstract(Symbol ^owner, StrategyAbstractOptions ^options)
{
	this->owner = owner;
	this->owner->Bars_()->HistoryBarsCompleted += gcnew HistoryBarsCompletedDel(this, &StrategyAbstract::HistoryBarsCompleted);
	this->owner->Bars_()->ReadTimeBarAdded += gcnew ReadTimeBarAddedDel(this, &StrategyAbstract::NewBarAdded);
	this->owner->MarketData_()->NewMarketData += gcnew NewMarketDataDel(this, &StrategyAbstract::NewMarketData);
	this->owner->Orders_()->OrderStatusChanged += gcnew OrderStatusChangedDel(this, &StrategyAbstract::OrderStatusChanged);

	this->strategyOptions = options;
}
